﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using University.Workshop.Presenters.CollectControl.OtherCollectControl.Read;

namespace University.Workshop.Presentation.CollectControl.OtherCollectControl
{
    /// <summary>
    /// Interaction logic for OtherCollectControlRead.xaml
    /// </summary>
    public partial class OtherCollectControlRead : Page, IReadOtherCollectControlView
    {
        PresenterReadOtherCollectControl pReadOtherCollectControl;
        public OtherCollectControlRead(Model.OtherCollectControl other)
        {
            InitializeComponent();
            pReadOtherCollectControl = new PresenterReadOtherCollectControl(this, other);
            pReadOtherCollectControl.LoadDataToView();
        }

        #region Fields
        public string Square
        {
            set
            {
                squareLbl.Content = value;
            }
        }

        public string Allotment
        {
            set
            {
                AllomentLbl.Content = value;
            }
        }

        public string NamePartner
        {
            set
            {
                partnerNameLbl.Content = value;
            }
        }

        public string CiPartner
        {
            set
            {
                partnerCiLbl.Content = value;
            }
        }

        public string ControlDetail
        {
            set
            {
                DetailsTxt.Text = value;
            }
        }

        public decimal Amount
        {
            set
            {
                amountLbl.Content = value.ToString();
            }
        }

        public string ChargeType
        {
            set
            {
                chargeTypeLbl.Content = value;
            }
        }

        public DateTime PaymentDate
        {
            set
            {
                paymentDateLbl.Content = value.ToShortDateString();
            }
        }
        #endregion

        #region buttons
        private void cancelBtn_Click(object sender, RoutedEventArgs e)
        {

        }
        #endregion
    }
}
